<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>jQuery使用</title>
        <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
        <script>
        	function showImg(){
        		$("#myimage").show();    /*与document.getElementById("myimage")意思一样*/
        	}
        	function hideImg(){
        		$("#myimage").hide();    
        	}
        </script>
	</head>
	<body>
		<img id="myimage" src="img/猫.jpg" />
		<br>
		<button onclick="showImg()">显示图片</button>
		<button onclick="hideImg()">隐藏图片</button>
	</body>
</html>
